package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.pojo.AddressBook;
import com.itheima.result.R;
import org.springframework.transaction.annotation.Transactional;
import org.yaml.snakeyaml.events.Event;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * @Author: 斌
 * @DateTime: 2023年02月12日  16:14:08
 * @Description: com.itheima.service
 * @Version: 1.0
 */
@Transactional
public interface AddressBookService extends IService<AddressBook> {
    R addAddress(AddressBook addressBook, HttpSession session);

    R updateDefaultAddress(AddressBook addressBook);

    R queryDefaultAddress();

    R queryAddressList();

    R removeAddressList(List<Long> ids, HttpSession session);

    R updateAddress(AddressBook addressBook);

    R queryAddressById(Long id);
}
